<template lang="pug">
  keep-alive
    kalix-table(bizKey="HotlistsAnchor" title='推荐主播列表' ref="kalixTable"
    v-bind:tableFields="tableFields"
    v-bind:targetURL="targetURL"
    v-bind:bizDialog="HotlistsAnchorDialog"
    v-bind:toolbarBtnList="toolbarBtnList"
    v-bind:btnList="HotlistsAnchorBtnList")
  <!--v-bind:buttonPermissionPrefix="buttonPermissionPrefix"-->
  <!--bizSearch="HotlistsAnchorSearch"-->

</template>

<script type="text/ecmascript-6">
  import {HotlistsAnchorURL, HotlistsAnchorBtnPermissionPrefix} from '../../config.toml'
  import {HotlistsAnchorConfigBtnList} from './config'
  import KalixTable from '../../../../../components/corelib/components/common/baseTable'

  export default {
    name: 'kalix-mooc-hotlistsanchor',
    components: {KalixTable},
    data() {
      return {
        targetURL: HotlistsAnchorURL + '/getAllHotlistsAnchor',
        tableFields: [
          {prop: 'uname', label: '推荐主播'},
          {prop: 'identify', label: '标识'}
        ],
        HotlistsAnchorDialog: [
          {id: 'add', dialog: 'HotlistsAnchorAdd'},
          {id: 'edit', dialog: 'HotlistsAnchorEdit'},
          {id: 'view', dialog: 'HotlistsAnchorView'}
        ],
        HotlistsAnchorBtnList: HotlistsAnchorConfigBtnList,
        toolbarBtnList: [
          {id: 'add', isShow: false, title: '添加', icon: 'icon-pinleizengjia', isPermission: true}
        ],
        buttonPermissionPrefix: HotlistsAnchorBtnPermissionPrefix
      }
    }
  }
</script>

<style scoped lang="stylus">

</style>
